package com.blog.sorket;

import com.blog.util.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
public class SorketAppcation {
    public static void main(String[] args) {
        SpringApplication.run(SorketAppcation.class, args);
    }

    @Bean
    public IdWorker idWorker() {
        return new IdWorker();
    }

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
